<template>
  <!--  <div>counter:{{ counter }}</div>-->
  <!--  <div>doubleCount:{{ doubleCount }}</div>-->
  <!--  <a-button @click="main.randomizeCounter()">counter(round)</a-button>-->
  <!--  <a-button type="primary" @click="main.increment()">counter++</a-button>-->

  <!--  <div>{{ name }}</div>-->
  <p @click="login">登录</p>
</template>

<script lang='ts'>
import { defineComponent, reactive, ref } from 'vue'
import { useAuthStore } from "@/store";
// import loginServices from '@/services/login';

export default defineComponent({
  components: {},
  setup() {
    /**
     * 登录
     */
    const login = () => {
      // loginServices.accountLogin({
      //   password: "bb123456",
      //   phoneNumber: "133202095372"
      // }).then(res => {
      //   console.log("res", res)
      // })
      useAuthStore().setAuthorizationToken("111")
      useAuthStore().setToken("222")
    }

    return {
      login
    }
  }
})
</script>

<style lang="scss" scoped>

.btn {
  width: 1920px;

  @include setThemes {
    background-color: var("background-color") !important;
    color: var("color") !important;
  }

}
</style>
